/*
* @Author: Administrator
* @Date:   2019-08-18 17:14:14
* @Last Modified by:   Administrator
* @Last Modified time: 2019-08-18 17:23:53
*/
var path = require('path');

var express = require('express');
var app = express();

var router = require('./routes/index.js');

app.use(express.static('public/'));


app.engine('html', require('express-art-template'));

app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'html');

app.use( router );

app.listen(8080, function () {
	console.log( 'server running...' );
})